<?php

Loader::using("underscore::libs::phpQuery::phpQuery");
/**
 * Description of SAppConfig
 *
 * @author JeyDotC
 * 
 * @export Config
 * @export-metadata singleinstance
 */
class SAppConfig extends AppConfig {
    /**
     *
     * @var phpQueryObject
     */
    private $document;
    
    public function get($key) {
        return $this->document->find($key)->text();
    }

    protected function load() {
        
        $this->document = phpQuery::newDocumentFileXML(Loader::toSinglePath("config", ".xml"));
    }

}

?>
